﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program06
{
    class Program
    {
        static void Main(string[] args)
        {
            //销售类，传入购买数量
            var sale = new Sale { Count = 2 };

            //打折
            var dis = new Discount(sale)
            {
                Folding = 0.7
            };
            dis.DisFolding(12);

            //满减
            var full = new FullReduction(sale)
            {
                Upperlimit = 100,
                FullPrice = 20
            };
            full.Full(100);

            //第二个半价
            var half = new HalfPrice(sale)
            {
                Determine = 2
            };
            half.Half(12);

            Console.ReadLine();
        }
    }
}
